﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace EmployeeManager
{
    public partial class Worker
    {
        partial void IsActive_IsReadOnly(ref bool result)
        {
            if (this.Application.User.HasPermission("EmployeeManager:SystemManager"))
                result = false;
            else
                result = true;
        }
    }
}
